/*
 Window handling from Nate Robis' Tutorial
*/

#ifndef __NATEWIN_H
#define __NATEWIN_H

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include "glm.h" 

#define GAP  25             /* gap between subwindows */

typedef struct _cell {
    int id;
    int x, y;
    float min, max;
    float value;
    float step;
    char* info;
    char* format;
} cell; 


void setfont(char* name, int size);
void drawstr(GLuint x, GLuint y, char* format, ...);
int cell_hit(cell* cell, int x, int y);
void cell_draw(cell* cell);
void cell_update(cell* cell, int update);
void cell_vector(float* dst, cell* cell, int num);
GLint getSelection();
void setSelection(GLint selection);


#endif